using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SiteECSWeb;

public partial class CompanyAccount_EditNewUserProfile : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string RoleName = string.Empty;
            string UserID = string.Empty;
            if (Helper.CheckAndGetQueryStrStringVirtualName("RoleName", "UserID",
                   "EditNewUserProfile", out RoleName, out UserID))
            {
                Guid userid = new Guid(UserID);
                MembershipUser userinfo = Membership.GetUser(userid);
                if (Roles.IsUserInRole(userinfo.UserName,RoleName))
                {
                    CompanyProfileBasicInfo2.CompanyUserName = userinfo.UserName;
                    CompanyProfileBasicInfo2.DataBind();
                    CompanyProfileBasicInfo1.CompanyUserName = userinfo.UserName;
                    CompanyProfileContactDetails1.CompanyUserName = userinfo.UserName;
                }
                else
                {
                    Response.Write("sdsdfsdfsd");
                }
            }
        }
    }
}
